import { BrowserWindow } from 'electron'

export const send2FocusedWin = (channel: string, ...args: any[]) => {
  BrowserWindow.getFocusedWindow()?.webContents.send(channel, ...args)
}
